package wang.aweb.childcar.model.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import wang.aweb.childcar.model.pojo.MoneyOrder;
import wang.aweb.childcar.model.query.CzOrderParam;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Repository
public interface MoneyOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MoneyOrder record);

    int insertSelective(MoneyOrder record);

    MoneyOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MoneyOrder record);

    int updateByPrimaryKey(MoneyOrder record);

    List<MoneyOrder> selectList(@Param("query") CzOrderParam query);

    Integer getCount(@Param("query") Map<String, Date> query);

    MoneyOrder selectByOrderNo(String orderNo);
}